package com.gemptc.yueban.service;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gemptc.yueban.daoImp.InsertRegistrationImp;

/**
 * Servlet implementation class YueBan_BaoMing
 */
@WebServlet("/YueBan_BaoMing")
public class YueBan_BaoMing extends HttpServlet {
	private static final long serialVersionUID = 1L;

	public YueBan_BaoMing() {
		super();
	}

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		doPost(request, response);
	}

	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		response.setCharacterEncoding("utf-8");
		request.setCharacterEncoding("utf-8");
		int user_id = Integer.valueOf(request.getParameter("user_id"));
		int ac_id = Integer.valueOf(request.getParameter("ac_id"));
		int rl_number = Integer.valueOf(request.getParameter("rl_number"));
		String rl_phone = request.getParameter("rl_phone");
		String rl_message = request.getParameter("rl_message");
		InsertRegistrationImp insertRegistrationImp=new InsertRegistrationImp();
		insertRegistrationImp.InsertRegistration(user_id, ac_id, rl_number, rl_phone, rl_message);
	}

}
